package com.wangyadong.hobby.schedule.jobtask.jvm;

/**
 * <p>
 *
 * @author <714037465@qq.com>
 * @since 2018/11/2313:59
 **/
public class LocalVariableTable {
    /**
     * byte[] placeHodle = new byte[64 * 1024 * 1024];
     * System.gc();
     * 不会回收代码
     * <p>
     * <p>
     * ------------------------------------------------------------------
     * {
     * byte[] placeHodle = new byte[64 * 1024 * 1024];
     * }
     * <p>
     * [GC (System.gc())  71491K->67169K(123904K), 0.0015444 secs]
     * [Full GC (System.gc())  67169K->66997K(123904K), 0.0072150 secs]
     *
     *------------------------------------------------------------------
     *        {
     byte[] placeHodle = new byte[64 * 1024 * 1024];
     }

     int a = 0;
     System.gc();
     *
     * [GC (System.gc())  71491K->67150K(123904K), 0.0012782 secs]
     [Full GC (System.gc())  67150K->1461K(123904K), 0.0065007 secs]
     * @param args
     */
    public static void main(String[] args) {
        byte[] placeHodle =null;
        {
            placeHodle = new byte[64 * 1024 * 1024];
        }
        int a = 0;
        System.gc();
    }
}
